package com.bigcat.gulimall.demo.test;

import org.apache.commons.lang3.math.NumberUtils;

import java.util.Arrays;
import java.util.List;

/**
 * @author sufer_yuan
 * @since 2022/10/11
 */
public class test5 {
    public static List<String> SX_CODE_LIST = Arrays.asList("57502", "57508", "57503");

    public static void main(String[] args) {
        boolean contains = SX_CODE_LIST.contains("57509");
        SX_CODE_LIST.forEach(s -> {
            if ("57502".equals(s)) {
                System.out.println("s");
                return;
            }
            System.out.println(s);
        });
        System.out.println(contains);

        long lon = 1213;

        int lon1 = (int) lon;
        int i = Integer.parseInt(String.valueOf(lon));

        double v = Double.parseDouble("50%".replace("%", ""));
        System.out.println(v);

        double batteryLevelVal = NumberUtils.isDigits("123%%") ? Double.parseDouble("123%%") : 0d;

    }
}
